/* Element Plus 主题变量覆盖 */
:root {
  /* 主题色 - 蓝紫色 */
  --el-color-primary: #5B6EE1;
  --el-color-primary-light-1: #6f80e5;
  --el-color-primary-light-2: #8491e9;
  --el-color-primary-light-3: #98a3ec;
  --el-color-primary-light-4: #adb5f0;
  --el-color-primary-light-5: #c1c7f4;
  --el-color-primary-light-6: #d5d9f7;
  --el-color-primary-light-7: #eaecfb;
  --el-color-primary-light-8: #f2f3fd;
  --el-color-primary-light-9: #f8f9fe;
  --el-color-primary-dark-1: #5262ca;
  --el-color-primary-dark-2: #4957b4;
  
  /* 菜单颜色 */
  --menu-text-color: #303133;
  --menu-active-text-color: var(--el-color-primary);
  --menu-hover-bg-color: #f5f7fa;
  --menu-active-bg-color: #ecf5ff;
  
  /* 功能色 */
  --el-color-success: #67C23A;
  --el-color-warning: #E6A23C;
  --el-color-danger: #F56C6C;
  --el-color-info: #909399;
}

/* 全局样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: #f9fafb;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  color: #303133;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f6f6f6;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Element Plus 样式优化 */
.el-button {
  font-weight: 500;
}

.el-button--primary {
  --el-button-hover-bg-color: #6f80e5;
  --el-button-active-bg-color: #5262ca;
}

.el-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s, transform 0.3s;
}

.el-card:hover {
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.el-menu {
  border-right: none !important;
}

.el-menu-item, .el-sub-menu__title {
  height: 50px;
  line-height: 50px;
}

.el-sub-menu__title {
  padding-left: 20px !important;
}

.el-menu--collapse .el-sub-menu__title i {
  color: var(--menu-text-color);
}

.el-menu--popup {
  min-width: 200px;
}

.el-menu--popup .el-menu-item {
  height: 50px;
  line-height: 50px;
  padding: 0 20px !important;
}

.el-table {
  --el-table-border-color: #ebeef5;
  --el-table-header-bg-color: #f8f9fe;
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  font-weight: 600;
  color: #606266;
  background-color: #f8f9fe;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background-color: #f9fafb;
}

.el-dialog {
  border-radius: 12px;
  overflow: hidden;
}

.el-dialog__header {
  background-color: #f8f9fe;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.el-dialog__title {
  font-weight: 600;
  color: #303133;
}

.el-dialog__body {
  padding: 24px;
}

.el-dialog__footer {
  background-color: #f8f9fe;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
}

.el-message-box {
  border-radius: 12px;
  padding: 20px;
}

.el-tag {
  border-radius: 4px;
}

.el-pagination {
  margin-top: 16px;
  justify-content: center;
}

/* 自定义动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.3s ease-out;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateX(-20px);
  opacity: 0;
}

/* 常用工具类 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cursor-pointer {
  cursor: pointer;
} 